package com.zzzzzz.core.web;

import java.text.SimpleDateFormat;
import java.util.Locale;

import javax.annotation.Resource;

import org.springframework.context.MessageSource;

public class BaseController {

	@Resource
	private MessageSource messageSource;
	
	protected String getMessage(String key, Locale locale){
		return messageSource.getMessage(key, null, locale);
	}
	protected String getMessage(String key, Object[] objs, Locale locale){
		return messageSource.getMessage(key, objs, locale);
	}
	
	
	public SimpleDateFormat format = new SimpleDateFormat("MMM dd, yyyy 'at' hh:mm a");
}
